package com.itheima.design.mode.builder;

public class User {

    private String name;
    private String password;
    private String nickName;
    private int age;

    public User(String name, String password, String nickName, int age) {
        this.name = name;
        this.password = password;
        this.nickName = nickName;
        this.age = age;
    }

    /**
     * 这个方法是一个很好的习惯，
     * @return
     */
    public static UserBuilder builder(){
        return new UserBuilder();
    }
}
